package cn.lizemin.demo.functionalInterface;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo {

    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        test("lizemin", System.out::println);

    }
    private static void test(String msg,MyConsumer con){
        con.accept(msg);
    }

}
